﻿<Window x:Class="WPFEdit.Views.TextPrompt"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                xmlns:local="clr-namespace:WPFEdit.Views"

             mc:Ignorable="d" 
        ResizeMode="NoResize"
             d:DesignHeight="197" d:DesignWidth="366" SizeToContent="WidthAndHeight">
    <Grid>
        <TextBox Height="29" HorizontalAlignment="Left" Margin="12,53,0,0" Name="PromptTextBox" VerticalAlignment="Top" Width="317">
            <TextBox.Text>
                <Binding Path="PromptTextBox.Text" UpdateSourceTrigger="PropertyChanged">
                    <Binding.ValidationRules>
                        <local:PromptValidationRule />
                    </Binding.ValidationRules>
                </Binding>
            </TextBox.Text>

        </TextBox>
        <Button Content="OK" Height="23" HorizontalAlignment="Left"  Name="OKButton" VerticalAlignment="Top" Width="75" IsDefault="True" Click="OKButton_Click" Margin="181,123,0,0" />
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left"  Name="CancelButton" VerticalAlignment="Top" Width="75" IsCancel="True" Margin="269,123,0,0" />
        <Label Content="Label" Height="25" HorizontalAlignment="Left" Margin="12,12,0,0" Name="PromptLabel" VerticalAlignment="Top" Width="317" />
    </Grid>
</Window>
